<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>2-块级作用域</title>
	</head>
	<body>
		<script type="text/javascript">
			/**
			 * JS里面没有块级作用域
			 */
			if(true){
				var num = 123;
				console.log('局部::'+num);
			}
			console.log('>>>'+num);
		</script>
	</body>
</html>
